#import <Foundation/Foundation.h>
#import "SEGDetailsellModel.h"
#import "SEGCarRentalDetailsModel.h"

@class SEGCarRentalDetailsDataModel;

@interface SEGDetailsellManager : NSObject
#pragma mark - SINGLE----BEGIN----
+(instancetype)sharedManager;//创建单例
+(void)destroyResource;//销毁单例
#pragma mark - SINGLE----END----

#pragma mark - HTTP----BEGIN----

/**
 房屋租售-出售详情接口

 @author Sam
 @param rentalId 房屋租售主键ID
 */
-(void)requestDetailsellWithRentalid:(NSString*)rentalId finished:(void(^)(BOOL isSuccessed,id result,NSString* codeType,NSString* errorMessage))finished;

/**
 房屋租售-出租详情接口
 
 @author Sam
 @param rentalId 房屋租售主键ID
 */
-(void)requestDetailLeaseWithRentalid:(NSString*)rentalId finished:(void(^)(BOOL isSuccessed,id result,NSString* codeType,NSString* errorMessage))finished;

/**
 车位租售详情接口
 
 @author Sam
 @param rentalId 房屋租售主键ID
 */
-(void)requestCarRentalDetailLeaseWithRentalid:(NSString*)rentalId finished:(void(^)(BOOL isSuccessed,SEGCarRentalDetailsDataModel * model,NSString* codeType,NSString* errorMessage))finished;


#pragma mark - HTTP----END----

#pragma mark - SOURCE----BEGIN----
@property (nonatomic, strong) SEGDetailsellModel *detailSell;
@property (nonatomic, strong) SEGDetailsellModel *detailLease;
#pragma mark - SOURCE----END----
@end

